package com.gxa.service.impl;

import com.gxa.entity.Campus;
import com.gxa.mapper.NavigationMapper;
import com.gxa.service.NavigationService;
import com.gxa.vo.NavigationVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NavigationServiceImpl implements NavigationService {

    @Autowired
    private NavigationMapper navigationMapper;

    @Override
    public List<NavigationVo> queryNavigations() {

        return this.navigationMapper.queryNavigations();
    }

    @Override
    public List<NavigationVo> queryNaviByName(String name) {
        return this.navigationMapper.queryNaviByName(name);
    }

    @Override
    public List<NavigationVo> queryNaviByName1(String campus) {
        return this.navigationMapper.queryNaviByName1(campus);
    }

    @Override
    public int queryNavigationId(String campus) {
        return this.navigationMapper.queryNavigationId(campus);
    }

    @Override
    public void updateNavigation(Campus campus) {
        this.navigationMapper.updateNavigation(campus);
    }

    @Override
    public void deleteNavigation(String campus) {
        this.navigationMapper.deleteNavigation(campus);
    }

    @Override
    public void insertNavigation(NavigationVo navigationVo) {
        this.navigationMapper.insertNavigation(navigationVo);
    }


}
